package com.sharkpro.designPattern.myAdapter;

import java.io.IOException;

/**
 * @author jianxin.wei
 * @description
 * @date 2024/12/17 16:44
 */
public class MainProperties {
    public static void main(String[] args) throws IOException {
        String fileName = "E:\\shark\\All\\sharkPro\\src\\main\\java\\com\\sharkpro\\designPattern\\myAdapter\\test.txt";
        FileIO f = new FileProperties();
        f.readFromFile(fileName);
        f.setValue("year","2024");
        f.setValue("month","4");
        f.setValue("day","21");
        f.writeToFile(fileName);
    }
}
